<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">

    /*ceil 实际意义 做分页*/
    var total = 101;
    var size = 10;
    var pages = Math.ceil( total / size );

    console.log(pages);

</script>

</html>
